package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TProductDao;
import com.taiyo.modules.api.entity.TProductEntity;
import com.taiyo.modules.api.service.TProductService;



@Service("tProductService")
public class TProductServiceImpl implements TProductService {
	@Autowired
	private TProductDao tProductDao;
	
	@Override
	public TProductEntity queryObject(Long id){
		return tProductDao.queryObject(id);
	}
	
	@Override
	public List<TProductEntity> queryList(Map<String, Object> map){
		return tProductDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tProductDao.queryTotal(map);
	}
	
	@Override
	public long save(TProductEntity tProduct){
		return tProductDao.save(tProduct);
	}
	
	@Override
	public void update(TProductEntity tProduct){
		tProductDao.update(tProduct);
	}
	
	@Override
	public void delete(Long id){
		tProductDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tProductDao.deleteBatch(ids);
	}

	@Override
	public List<TProductEntity> queryListByParams(Map<String, Object> map) {
		return tProductDao.queryListByParams(map);
	}

}
